package top.breezes.example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.breezes.example.service.DemoService;

/**
 * @author yuchengxin@xiaomalixing.com
 * @Date 2021/1/5 14:16
 * @Description
 */
@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping("/back")
    public String back() {
        return demoService.back();
    }

    @RequestMapping("hello")
    public String hello() {
        return demoService.hello();
    }

}
